<?php

/**
 * Empresa filter form.
 *
 * @package    cronos-doctrine
 * @subpackage filter
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormFilterTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class EmpresaFormFilter extends BaseEmpresaFormFilter
{
  public function configure()
  {
      unset(
            $this['created_at'],
            $this['updated_at'],
            $this['expires_at'],
            $this['idioma_list'],
            $this['moneda_list'],
            $this['pago_list'],
            $this['padre'],
            $this['correo_inf'],
            $this['logo']
      );
       $this->widgetSchema['rif']->setLabel('R.F.C');
      
      
//      $cal = new Calendario();
//        $this->widgetSchema['created_at'] = new sfWidgetFormFilterDate(array(
//                'from_date' => new sfWidgetFormJQueryDate($cal->getCalendario()),
//                 'to_date' =>new sfWidgetFormJQueryDate($cal->getCalendario()),
//                 'with_empty' => false    ));
//
//
//      $this->widgetSchema['updated_at'] = new sfWidgetFormFilterDate(array(
//                'from_date' => new sfWidgetFormJQueryDate($cal->getCalendario()),
//                 'to_date' =>new sfWidgetFormJQueryDate($cal->getCalendario()),
//                 'with_empty' => false    ));

//      $this->widgetSchema['idioma_list']->setOption('renderer_class', 'sfWidgetFormSelectDoubleList');
//      $this->widgetSchema['idioma_list']->setLabel('Listar Idiomas');
//
//      $this->widgetSchema['moneda_list']->setOption('renderer_class', 'sfWidgetFormSelectDoubleList');
//      $this->widgetSchema['moneda_list']->setLabel('Listar Monedas');
//
//      $this->widgetSchema['pago_list']->setOption('renderer_class', 'sfWidgetFormSelectDoubleList');
//      $this->widgetSchema['pago_list']->setLabel('Listar Pagos');
  }
}
